﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="product_details.aspx.cs"
    Inherits="V5_EShop._Template.Default.product_details" %>

<%@ Import Namespace="V5_Common" %>
<%@ Register Src="Controls/getHeader2.ascx" TagName="getHeader2" TagPrefix="mm" %>
<%@ Register Src="Controls/getDismode.ascx" TagName="getDismode" TagPrefix="mm" %>
<%@ Register Src="Controls/getFooter.ascx" TagName="getFooter" TagPrefix="mm" %>
<%@ Register Src="Controls/getProductHotList.ascx" TagName="getProductHotList" TagPrefix="mm" %>
<%@ Register Src="Controls/getUserBrowseProductList.ascx" TagName="getUserBrowseProductList"
    TagPrefix="mm" %>
<%@ Register Src="Controls/getSearch.ascx" TagName="getSearch" TagPrefix="mm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="/<%=TemplatePath %>/css/init.css">
    <link rel="stylesheet" type="text/css" href="/<%=TemplatePath %>/css/Detail.css">
    <link rel="stylesheet" type="text/css" href="/<%=TemplatePath %>/css/jqzoom.css">
    <link href="/<%=TemplatePath %>/css/head.css" rel="stylesheet" type="text/css">
    <link href="/Scripts/jquery_layer.css" rel="stylesheet" type="text/css" />
    <link href="/Scripts/tango/skin.css" rel="Stylesheet" type="text/css" />
    <title>
        <%=product.ProductName %>-商品详情</title>

    <script type="text/javascript" src="/Scripts/jquery_min.js"></script>

    <script type="text/javascript" src="/Scripts/common.js"></script>

    <script type="text/javascript" src="/<%=TemplatePath %>/Scripts/jquery.jqzoom.min.js"></script>

    <script type="text/javascript" src="/<%=TemplatePath %>/Scripts/jquery.imageScroller.js"></script>

    <script src="/Scripts/productImgShow/highslide.js" type="text/javascript"></script>

    <script type="text/javascript" src="/<%=TemplatePath %>/Scripts/khd_product.js"></script>

    <script language="javascript" src="/<%=TemplatePath %>/scripts/V5_Common.js"></script>

    <script type="text/javascript" src="/Scripts/jquery-layer.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery.jcarousel.min.js"></script>

</head>
<body>
    <div id="page">
        <mm:getHeader2 ID="Header1" runat="server" />
        <div class="content">
            <mm:getSearch ID="getSearch" runat="server" />
        </div>
        <%-- 滚动开始--%>
        <mm:getProductHotList ID="getProductHotList1" runat="server" ParamValue="$Row=10" />
        <%-- 滚动结束--%>
        <div class="clear">
        </div>
        <div class="lujing">
            首页 <span>></span> 衬衫 <span>></span> 商务衬衫 <span>></span> 商务经典衬衫
        </div>
        <div style="border-bottom: solid 1px #d0d0d0;">
            <div class="left">
                <div style="float: left; width: 75px;" id="piclist">
                    <%--<img src="/<%=TemplatePath %>/images/Detail/content_shanjiao01.gif"
                        width="9" height="5" style="margin: 0 0 0 30px;">--%>
                    <ul id="mycarousel" class="jcarousel jcarousel-skin-tango ul01">
                        <%-- 多个图片--%>
                        <li class="li_qita"><a>
                            <img src=" <%=Helper.Replace(product.ProductBigPic,"productm","products") %>" width="70"
                                height="70" onclick="go_pic_bigpic(this);" id="thumb10000" /></a></li>
                        <asp:Repeater ID="rpProductMorePic" runat="server">
                            <ItemTemplate>
                                <li class="li_qita"><a>
                                    <img src="<%#Helper.Replace(DataBinder.Eval(Container.DataItem,"m2").ToString(),"productm","products") %>"
                                        width="70" height="70" alt="<%#DataBinder.Eval(Container.DataItem,"m1") %>" onclick="go_pic_bigpic(this);"
                                        id="thumb<%#DataBinder.Eval(Container.DataItem,"id") %>"></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <%--   多个图片结束--%>
                    </ul>

                    <script type="text/javascript">

                        jQuery(document).ready(function() {
                            jQuery('#mycarousel').jcarousel({
                                vertical: true,
                                scroll: 1
                            });
                        });

                    </script>

                    <%-- <img src="/<%=TemplatePath %>/images/Detail/content_shanjiao02.gif"
                        width="9" height="5" style="margin: 0 0 0 30px;" id="picbtn1">--%>
                </div>
                <div style="float: left; margin: 0 0px 0 30px; text-align: center;" class="jqzoom"
                    style="border: 0;">
                    <img src="<%=product.ProductBigPic %>" width="375" height="450" jqimg="<%=Helper.Replace(product.ProductBigPic,"productm","productl") %>"
                        id="jqzoomhaha" style="border: 0;" /></div>
                <div class="clear">
                </div>
                <a href='<%=this.getPic(product.ProductBigPic,"l") %>' id="hignslidepic" class="highslide"
                    onclick="return hs.expand(this, {captionId: 'caption1'})"><span class="fangda">放大看看</span></a>
            </div>
            <div class="right">
                <ul class="ul02">
                    <li>
                        <div class="right_left">
                            <h2>
                                <%=product.ProductName %></h2>
                            <span class="hui">品牌：</span><%=product.ProductBrand %>
                            <span class="hui01">商品编号：</span><%=product.ProductCode %><br />
                            <span class="hui">售价：</span><span class="jiaqian">￥<%=product.ProductMemberPrice %></span><br />
                            <span class="hui">市场价：</span><span style="text-decoration: line-through;">￥<%=product.ProductMarketPrice %></span>
                        </div>
                        <div class="right_right">
                            <a href="/member/Temporary.aspx?productid=<%=product.ID %>">
                                <img src="/<%=TemplatePath %>/images/Detail/zancun.gif" width="45"
                                    height="21"></a>
                            <img src="/<%=TemplatePath %>/images/Detail/tuijian.gif" width="45"
                                height="21" class="tuijian_001">
                            <div class="Address">
                            
                                <input type="text" name="address_url" id="address_url" class="textfield3_01" value="<%= config.SiteUrl%>/product-details-<%=product.ID %>.aspx" />
                                <input type="submit" name="address_copy" id="address_copy" value="" class="copy" />
                            </div>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                    <%--字段选择--%>
                    <asp:Repeater ID="rpProductFieldSelect" runat="server">
                        <ItemTemplate>
                            <%# Get_CustomChoice(Input.SetInt(DataBinder.Eval(Container.DataItem, "CustomIndex")), Input.SetInt(DataBinder.Eval(Container.DataItem, "FieldID")), Input.SetString(DataBinder.Eval(Container.DataItem, "FieldValue")))%>
                        </ItemTemplate>
                    </asp:Repeater>
                    <li>
                        <form id="shoppingcartform" action="shoppingcart.aspx?pid=<%=product.ID %>" method="post"
                        target="_blank">
                        <div class="goumai">
                            <span class="goumai01"><span class="hui">数量</span>
                                <select id="txtQuantity" name="txtQuantity">
                                    <option value="1">1</option>
                                </select>

                                <script type="text/javascript">
                                    $(function() {
                                    var haha = "";
                                        for (var i = 1; i < <%=product.ProductCount %>; i++) {
                                            haha += "<option value='" + i + "'>" + i + "</option>";
                                        }
                                        $("#txtQuantity").html(haha)
                                    });
                                </script>

                            </span><span><span class="goumai02"><span style="display: block; color: #525252;">
                                <div id="choiceResult" class="clear" style="">
                                </div>
                            </span><span style="font-size: 14px; font-weight: bolder; color: #990000;">￥<%=product.ProductMemberPrice %>元</span>
                            </span><span class="goumai03">
                                <input id="Submit1" type="submit" value="" style="background: url(_Template/<%=config.TemplatePath %>/images/Detail/botton.gif);
                                    border: 0; width: 108px; height: 28px;" />
                            </span>
                                <div class="clear">
                                </div>
                        </div>
                        <input id="txtfieldvalues" name="txtfieldvalues" value="" type="hidden" />
                        </form>
                        <a target="_blank" style="margin: 15px 0; display: block;" href="/member/Evaluate_CommentEdit.aspx?pid=<%=product.ID %>">
                            还没有去打分，现在去打分</a>
                        <div class="clear">
                        </div>
                    </li>
                </ul>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="miaoshu">
            <span class="miaoshu01">
                <h2>
                    产品描述：</h2>
                <div class="pp">
                    <%=product.Content %>
                </div>
            </span><span class="miaoshu02">
                <h2>
                    产品属性：</h2>
                <ul class="content_ul03">
                    <asp:Repeater ID="rpListProductPro" runat="server">
                        <ItemTemplate>
                            <li><span>
                                <%#DataBinder.Eval(Container.DataItem,"m1") %>：</span><%#DataBinder.Eval(Container.DataItem,"m2") %></li>
                        </ItemTemplate>
                    </asp:Repeater>
                    <div class="clear">
                    </div>
                </ul>
            </span>
            <div class="clear">
            </div>
        </div>
        <div class="miaoshu">
            <span class="miaoshu01">
                <h2>
                    洗涤说明：</h2>
                <span style="border: solid 1px #d0d0d0; margin: 10px; padding: 10px; display: block;">
                    <%=Get_ProductXJ(product.XjIDs,68,70) %>
                </span></span><span class="miaoshu02">
                    <h2>
                        商品尺码表：</h2>
                    <div style="width: 350px; height: 81px; margin: 10px 0 0 0; padding: 3px; color: #525252;
                        overflow: scroll;">
                        <%=product.ProductSizeTable %>
                    </div>
                </span>
            <div class="clear">
            </div>
        </div>
        <div class="pingjia">
            <ul class="ul04">
                <h2>
                    您最近浏览过的产品</h2>
                <mm:getUserBrowseProductList ID="getUserBrowseProductList" runat="server" />
                <div class="clear">
                </div>
            </ul>
            <div class="hudong">
                <%--评论开始--%>
                <div class="pinglun">
                    <div class="pinglun01">
                        <strong style="font-size: 14px; color: #525252; margin: 0 10px 0 10px;">用户评论</strong>
                        <span style="color: #525252;">共有
                            <%= CommentCount %>
                            条评论</span> <a href="/product-allcomments.aspx?productid=<%=product.ID %>" target="_blank"
                                style="margin: 0 10px;">查看所有评论</a><span><a href="/member/Evaluate_CommentEdit.aspx?pid=<%=product.ID %>"
                                    target="_blank">我要评论</a></span><span style="margin: 0 0 0 150px; color: #999;">所有打分和评论均来自购买本产品的用户</span>
                    </div>
                    <asp:Repeater ID="rpProductCommentList" runat="server">
                        <ItemTemplate>
                            <div style="border-bottom: #dcdcdc 1px dashed;">
                                <div class="Questions">
                                    <strong>
                                        <%# Get_UserInfo(DataBinder.Eval(Container.DataItem, "MemberID")).UserName%>评论：</strong><span
                                            style="width: 440px; padding: 0 8px 0 0; display: block;"><%# DataBinder.Eval(Container.DataItem, "CommentContent")%></span><span><%# DataBinder.Eval(Container.DataItem, "AddDateTime")%></span></div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <%--评论结束--%>
                <%--问答列表开始--%>
                <div class="pinglun">
                    <div class="pinglun01">
                        <strong style="font-size: 14px; color: #525252; margin: 0 10px 0 10px;">产品问答</strong>
                        <span style="color: #525252;">共有
                            <%=QuestionCount %>
                            条问答</span> <a href="product-allask.aspx?productid=<%=product.ID %>" target="_blank"
                                style="margin: 0 0 0 385px; color: #333;">查看全部问答</a> | <a target="_blank" style="color: #333;"
                                    href="product-ask.aspx?productid=<%=product.ID %>">我要提问</a></span>
                    </div>
                    <asp:Repeater ID="rpQuestionList" runat="server">
                        <ItemTemplate>
                            <div style="border-bottom: #dcdcdc 1px dashed;">
                                <div class="Questions">
                                    <strong>
                                        <%#Get_UserInfo(DataBinder.Eval(Container.DataItem,"memberid")).UserName %>
                                        问：</strong> <span>
                                            <%#DataBinder.Eval(Container.DataItem,"AskTitle") %></span> <span style="width: 440px;
                                                padding: 0 8px 0 0; display: block;">
                                                <%#DataBinder.Eval(Container.DataItem, "AskContent")%></span><span><%#DataBinder.Eval(Container.DataItem,"AddDateTime")%></span></div>
                                <div class="answers">
                                    <asp:Repeater ID="rpAskList" runat="server" DataSource='<%# Bind_ProductAsk(DataBinder.Eval(Container.DataItem,"ID").ToString()) %>'>
                                        <ItemTemplate>
                                            <strong>
                                                <%# DataBinder.Eval(Container.DataItem,"MemberID") %>
                                                回答：</strong> <span style="display: block; margin: 10px 0 0 0px; text-indent: 24px;">
                                                    <%#DataBinder.Eval(Container.DataItem, "AnswerContent")%></span>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <span style="margin: 15px 0 0 538px;">共有
                                        <%=ask_answer_count%>
                                        条回答 <a href="/product-answer.aspx?productid=<%=product.ID %>&askid=<%#DataBinder.Eval(Container.DataItem,"ID") %>"
                                            target="_blank" style="color: #333333;">[我要回答]</a></span>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <%--问答列表结束--%>
            </div>
            <div class="clear">
            </div>
        </div>
        <%--  配送方式--%>
        <mm:getDismode ID="getDismode1" runat="server" />
        <%--网站底部--%>
        <mm:getFooter ID="getFooter1" runat="server" />
    </div>

    <script type="text/javascript">

        $(function() {
            $(".tuijian_001").click(function() {
                var address = $(".Address");
                if (address.css("display") == "block") {
                    $(".Address").css("display", "none");
                } else {
                    $(".Address").css("display", "block");
                }
            });

            $("#address_copy").click(function() {
                var address_url = $("#address_url");
                if (document.all) {                                            //判断Ie
                    window.clipboardData.setData('text', address_url.val());
                    alert("地址复制成功！");
                } else {
                    alert("您的浏览器不支持剪贴板操作，请自行复制。");
                }
            });
        });
    </script>

</body>
</html>
